<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    for (const arrayElement of [1,2,3,4]) {
        console.log(arrayElement)
    }
    /*
    * 1
    * 2
    * 3
    * 4
    * */
</script>
</html>